/*
 * @Author: C.
 * @Date: 2021-08-05 16:01:44
 * @LastEditTime: 2021-08-30 16:38:09
 * @Description: file content
 */
import { formatToDate,formatToDateTime } from '/@/utils/dateUtil';
import { AmountFormat } from "../utils";
interface FilterType{
  type:string,
  name:string,
  func:Function
}
export const filterMaps:Record<string,FilterType>={
  'default':{
    type:'default',
    name:'默认',
    func:e=>e
  },
  'date':{
    type:'date',
    name:'日期',
    func:formatToDate
  },
  'dateTime':{
    type:'dateTime',
    name:'日期时间',
    func:formatToDateTime
  },
  'amount':{
    type:'amount',
    name:'保留两位小数',
    func:AmountFormat
  }
}